package com.etoak.web.sys_menu.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author by 孙有泽
 * @Date 2025/2/23 19:45
 * @Description
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class RouterVo {
    private String path;
    private String component;
    private String name;
    private Meta meta;
    private String redirect;
    @Data
    @AllArgsConstructor
    public class Meta{
        private String title;
        private String icon;
        private Object[] roles;
    }
    private List<RouterVo> children=new ArrayList<>();
}
